home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
prog
/
tpex.arj
/
WRTLNDMO.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-09-02
|
813b
|
27 lines
{
Learning to program in Turbo Pascal 6.0.
This is on formatting output with WRITELN.
By Robert E. Wade 09-02-1993
}
PROGRAM JustForFun;
USES Crt, Printer;
CONST Spc = ' ';
c1 = 10; { Column 1 width }
c2 = 10; { Column 2 width }
c3 = 10; { Column 3 width }
VAR Age: BYTE; { Stores users age }
Sal: REAL; { Stores users salary }
BEGIN
CLRSCR;
WRITELN( 'Age':c1, Spc:5, 'Salary ':c2); { Creates column headers }
WRITELN( '---':c1, Spc:5, '--------':c2); { Underlines column headers }
Age := 30; { Initialize variables }
Sal := 23000;
WRITELN( Age:c1, Spc:5, Sal:c2:2); { Display data }
END.